From: Colin Walters Date: Tue, 27 Jun 2023 10:26:08 +0000 (-0400) Subject: ci: Add "it compiles" coverage for --with-static-compiler X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~1^2~6^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6ed6a7e6990c3f53a1f750be67fd2a8c582dbddb;p=ostree.git ci: Add "it compiles" coverage for --with-static-compiler Prep for further changes. --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45060ab6..8986b7fa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -209,6 +209,16 @@ jobs: configure-options: >- --with-soup3 + # A build using static prepareorot + - name: Debian stable + static-prepareroot + image: debian:stable-slim + container-options: --security-opt seccomp=unconfined + pre-checkout-setup: | + apt-get update + apt-get install -y git + configure-options: >- + --with-static-compiler="gcc" + # Ubuntu builds. Unfortunately, when the latest release is # also the latest LTS, latest and rolling are the same. Other # options would be to test the previous LTS by name or to test diff --git a/Makefile-switchroot.am b/Makefile-switchroot.am index 8063d9e0..09455f56 100644 --- a/Makefile-switchroot.am +++ b/Makefile-switchroot.am @@ -46,6 +46,7 @@ ostree_boot_SCRIPTS += ostree-prepare-root ostree-prepare-root : $(ostree_prepare_root_SOURCES) $(STATIC_COMPILER) -o $@ -static $(top_srcdir)/src/switchroot/ostree-prepare-root.c $(ostree_prepare_root_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) -DOSTREE_PREPARE_ROOT_STATIC=1 +CLEANFILES += ostree-prepare-root else ostree_boot_PROGRAMS += ostree-prepare-root ostree_prepare_root_CFLAGS += $(AM_CFLAGS) -Isrc/switchroot -I$(srcdir)/composefs